<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<img src="../images/111.jpg">
<table width="100%" border="0" cellspacing="0" cellpadding="0" >
 	<tr bgcolor="#F3F3F3">
 		<td width="50">번호</td>
 		<td>제목</td>
 		<td width="70">글쓴이</td>
 		<td width="100">날짜</td>
 		<td width="70">조회수</td>
 	</tr>
 	<c:if test="${count==0}">
 		<tr>
 			<td colspan="5" align="center">등록된 게시물이 없습니다.</td>
 		</tr>
 	</c:if>
 	<c:forEach var="list" items="${shopboardlist}">
 		<tr>
 			<td align="center">${list.sb_num}</td>
 			<td><a href="boarddetail.do?sb_num=${list.sb_num}">${list.sb_title}</a></td>
 			<td>${list.m_id }</td>
 			<td>${list.sb_today}</td>
 			<td>${list.sb_count}<td>
 	 		</tr>
 	</c:forEach>
 	<tr>
 		<td align="center" colspan="5">${pagingHtml}</td>
 	</tr>
 	<c:if test="${userId != null}">
 	<tr >
 		<td align="right" colspan="5" >
 			<input type="button" value="글쓰기" onclick="location.href='boardwrite.do'">
 		</td>
 	</tr>
 	</c:if>
 	<form action="boardlist.do" name="search" method="get" onsubmit='return searchCheck()'>
	<table width="100" height="50" align="center" border="0" cellspacing="0" cellpadding="2">
	
	  <tr>
		<td align="center">
			<select name="keyField">
				<option value="sb_title">제목</option>
				<option value="m_id">아이디</option>
				<option value="sb_content">내용</option>
				<option value="all">전체</option>
			</select>
		</td>
		<td>
			<input type="text" size="16" name="keyWord">
		</td>
		<td>
			<input type="submit" value="찾기">
		</td>
	 </tr>
	</table>
</form>
 	
</table>











